using ObjFileLoader.Data.DataStore;
using System.Collections.Generic;

namespace ObjFileLoader.Data.Elements
{
	public class Group : IFaceGroup
	{
		private readonly List<Face> _faces = new List<Face>();

		public string Name
		{
			get;
			private set;
		}

		public Material Material
		{
			get;
			set;
		}

		public IList<Face> Faces => _faces;

		public Group(string name)
		{
			Name = name;
		}

		public void AddFace(Face face)
		{
			_faces.Add(face);
		}
	}
}
